Optimal. Leaf size=61 \[ -\frac{a \cot ^6(c+d x)}{6 d}-\frac{a \csc ^5(c+d x)}{5 d}+\frac{2 a \csc ^3(c+d x)}{3 d}-\frac{a \csc (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.103967, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {2834, 2607, 30, 2606, 194} \[ -\frac{a \cot ^6(c+d x)}{6 d}-\frac{a \csc ^5(c+d x)}{5 d}+\frac{2 a \csc ^3(c+d x)}{3 d}-\frac{a \csc (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2834
Rule 2607
Rule 30
Rule 2606
Rule 194
Rubi steps
\begin{align*} \int \cot ^5(c+d x) \csc ^2(c+d x) (a+a \sin (c+d x)) \, dx &=a \int \cot ^5(c+d x) \csc (c+d x) \, dx+a \int \cot ^5(c+d x) \csc ^2(c+d x) \, dx\\ &=-\frac{a \operatorname{Subst}\left (\int x^5 \, dx,x,-\cot (c+d x)\right )}{d}-\frac{a \operatorname{Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,\csc (c+d x)\right )}{d}\\ &=-\frac{a \cot ^6(c+d x)}{6 d}-\frac{a \operatorname{Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,\csc (c+d x)\right )}{d}\\ &=-\frac{a \cot ^6(c+d x)}{6 d}-\frac{a \csc (c+d x)}{d}+\frac{2 a \csc ^3(c+d x)}{3 d}-\frac{a \csc ^5(c+d x)}{5 d}\\ \end{align*}
Mathematica [A] time = 0.0242166, size = 61, normalized size = 1. \[ -\frac{a \cot ^6(c+d x)}{6 d}-\frac{a \csc ^5(c+d x)}{5 d}+\frac{2 a \csc ^3(c+d x)}{3 d}-\frac{a \csc (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.061, size = 110, normalized size = 1.8 \begin{align*}{\frac{1}{d} \left ( a \left ( -{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{5\, \left ( \sin \left ( dx+c \right ) \right ) ^{5}}}+{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{15\, \left ( \sin \left ( dx+c \right ) \right ) ^{3}}}-{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{5\,\sin \left ( dx+c \right ) }}-{\frac{\sin \left ( dx+c \right ) }{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) -{\frac{a \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{6\, \left ( \sin \left ( dx+c \right ) \right ) ^{6}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.13625, size = 95, normalized size = 1.56 \begin{align*} -\frac{30 \, a \sin \left (d x + c\right )^{5} + 15 \, a \sin \left (d x + c\right )^{4} - 20 \, a \sin \left (d x + c\right )^{3} - 15 \, a \sin \left (d x + c\right )^{2} + 6 \, a \sin \left (d x + c\right ) + 5 \, a}{30 \, d \sin \left (d x + c\right )^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.06001, size = 254, normalized size = 4.16 \begin{align*} \frac{15 \, a \cos \left (d x + c\right )^{4} - 15 \, a \cos \left (d x + c\right )^{2} + 2 \,{\left (15 \, a \cos \left (d x + c\right )^{4} - 20 \, a \cos \left (d x + c\right )^{2} + 8 \, a\right )} \sin \left (d x + c\right ) + 5 \, a}{30 \,{\left (d \cos \left (d x + c\right )^{6} - 3 \, d \cos \left (d x + c\right )^{4} + 3 \, d \cos \left (d x + c\right )^{2} - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.33398, size = 95, normalized size = 1.56 \begin{align*} -\frac{30 \, a \sin \left (d x + c\right )^{5} + 15 \, a \sin \left (d x + c\right )^{4} - 20 \, a \sin \left (d x + c\right )^{3} - 15 \, a \sin \left (d x + c\right )^{2} + 6 \, a \sin \left (d x + c\right ) + 5 \, a}{30 \, d \sin \left (d x + c\right )^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]